/*! For license information please see twk-chunk-7941cc06.js.LICENSE */ (window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-7941cc06"],{3519:function(e,t,r){"use strict";var n=r("2f62"),a=r("f0b0"),i={name:"TawkSpinner"},s=r("2877"),o=Object(s.a)(i,(function(){return this._self._c,this._m(0)}),[function(){var e=this._self._c;return e("div",{staticClass:"lds-spinner loader",attrs:{role:"status"}},[e("div",{staticClass:"spin spin-1"}),e("div",{staticClass:"spin spin-2"}),e("div",{staticClass:"spin spin-3"}),e("div",{staticClass:"spin spin-4"}),e("div",{staticClass:"spin spin-5"}),e("div",{staticClass:"spin spin-6"}),e("div",{staticClass:"spin spin-7"}),e("div",{staticClass:"spin spin-8"}),e("div",{staticClass:"spin spin-9"}),e("div",{staticClass:"spin spin-10"}),e("div",{staticClass:"spin spin-11"}),e("div",{staticClass:"spin spin-12"})])}],!1,null,null,null).exports;function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function m(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{m({},"")}catch(e){m=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,s=Object.create(i.prototype),o=new O(n||[]);return a(s,"_invoke",{value:$(e,r,o)}),s}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",h="executing",g="completed",v={};function y(){}function b(){}function k(){}var w={};m(w,s,(function(){return this}));var x=Object.getPrototypeOf,T=x&&x(x(L([])));T&&T!==r&&n.call(T,s)&&(w=T);var F=k.prototype=y.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){m(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(a,i,s,o){var c=f(e[a],e,i);if("throw"!==c.type){var u=c.arg,m=u.value;return m&&"object"==l(m)&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){r("next",e,s,o)}),(function(e){r("throw",e,s,o)})):t.resolve(m).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,o)}))}o(c.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function $(t,r,n){var a=p;return function(i,s){if(a===h)throw Error("Generator is already running");if(a===g){if("throw"===i)throw s;return{value:e,done:!0}}for(n.method=i,n.arg=s;;){var o=n.delegate;if(o){var l=S(o,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=f(t,r,n);if("normal"===c.type){if(a=n.done?g:"suspendedYield",c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=g,n.method="throw",n.arg=c.arg)}}}function S(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(a,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){for(;++a=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;j(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function u(e,t,r,n,a,i,s){try{var o=e[i](s),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,a)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){u(i,n,a,s,o,"next",e)}function o(e){u(i,n,a,s,o,"throw",e)}s(void 0)}))}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p={name:"InlineForm",mixins:[r("e49c").a],components:{TawkInput:a.TawkInput,TawkTextarea:a.TawkTextarea,TawkRadio:a.TawkRadio,TawkCheckbox:a.TawkCheckbox,TawkButton:a.TawkButton,TawkIcon:a.TawkIcon},props:{form:{type:Array,default:function(){return[]}},isSubmitting:{type:Boolean,default:!1},submissionError:{type:String,default:null}},data:function(){return{formFields:this.form,values:[]}},watch:{isNotValidEmail:function(e){var t=this;this.formFields.forEach((function(r){"email"===r.type&&null!=t.isNotValidEmail&&(r.invalidType=e)}))},name:function(e,t){e!==t&&this.updateFormValues()},email:function(e,t){e!==t&&this.updateFormValues()}},mounted:function(){this.updateFormValues()},computed:function(e){for(var t=1;t=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;j(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function k(e,t,r,n,a,i,s){try{var o=e[i](s),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,a)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){k(i,n,a,s,o,"next",e)}function o(e){k(i,n,a,s,o,"throw",e)}s(void 0)}))}}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw i}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=l?(a=Math.round(c/l),s="hours"):c>=o?(a=Math.round(c/o),s="minutes"):(a=Math.round(c/1e3),s="seconds"),i=this.$i18n("chat",s,{num:a}),this.$i18n("chat","call_end_details",{startedOn:"".concat(r,":").concat(n),duration:i})}return""},callIcon:function(e){return e.isVideo?"video-call-on":e.isScreenshare?"share-screen":"call"},submitSurvey:function(e){var t=this;this.isHistory||(this.$TawkChatManager.sendMessage({message:e}),this.showSurveryOptions=!1,this.$nextTick((function(){t.$eventBus.$emit("updateScrollPosition")})))},imageLoaded:function(){this.$emit("imageLoaded",!0)},resendMessage:function(e){for(var t=0;t1?"tawk-margin-bottom":"",attrs:{size:"small",src:r.profileImage,alt:"".concat(e.$i18n("chat","agent_profile_image"))}}):e._e(),t("div",{staticClass:"tawk-message-group tawk-flex-1",class:["v"===r.senderType?"tawk-margin-auto-left":""]},[t("div",{staticClass:"tawk-messages"},e._l(r.messages,(function(n){return t("div",{key:n.messageId,class:"v"===n.senderType?"tawk-visitor":"tawk-agent"},[e.showSenderName(n,r.messages)&&"v"!==n.senderType?t("p",{staticClass:"tawk-margin-xsmall-left tawk-chat-name-margin tawk-text-regular-2 tawk-text-truncate"},[e._v(" "+e._s(n.name)+" ")]):e._e(),n.message&&n.message.length||n.ticketFormRef||n.leadFormRef||n.attchs?t("chat-message-bubble",{attrs:{msg:n,emojiEnabled:e.emojiEnabled,barMessageRerence:e.barMessageRerence},on:{resendMessage:e.resendMessage}}):e._e()],1)})),0)])]],2)})),0),!e.isHistory&&Object.keys(e.getSurveyOptions).length&&"v"!==e.getSurveyOptions.senderType?t("div",{staticClass:"tawk-margin-top tawk-margin-small-bottom tawk-flex tawk-flex-bottom tawk-message-block"},[t("div",{staticClass:"tawk-message-group tawk-flex-1 tawk-margin-auto-left"},[t("div",{staticClass:"tawk-message-bubble"},[t("survey-options",{attrs:{options:e.getSurveyOptions.options},on:{selectSurvey:e.submitSurvey}})],1),t("div",{staticClass:"clearfix"})])]):e._e()],1)}),[],!1,null,null,null);t.a=P.exports},"3f09":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("f0b0"),a=r("028e"),i={data:function(){return{headerClass:""}},methods:{displayMessages:function(e){var t,r=e.message,i=void 0===r?{}:r,s=e.isIncoming,o=void 0!==s&&s,l=e.isLive,c=void 0===l||l,u=this.isScrollBarBottom(),m=c?this.$store.getters["chat/messageBlocks"]:this.$store.getters["history/messageBlocks"];if(!i.profileImage&&i.data&&i.data.rsc){var d=this.$store.getters["chat/agentProfile"](i.data.rsc);if(!d)return;i.profileImage=d.profileImage}if(m.length>0&&"c"===i.type&&((t=m[m.length-1]).ownerId===i.ownerId?(i.blockId=t.blockId,t.messages.push(i)):t=null),i.timeStamp>this.lastMessageTimestamp&&("v"===i.senderType?this.$store.dispatch("session/updateVisitorChatSeen",i.timeStamp):(this.unseenMessages.push(i),"chat"===this.currentRoute&&u&&!this.isLoading||this.barMessageId||(i.showBar=!0,this.barMessageId=i.messageId,this.barMessageRerence=i))),o&&"a"===i.senderType&&i.data&&i.data.rsc&&this.removeAgentIsTyping(i.data.rsc),i.isCallView){a.a.callStatusUpdate({clid:i.callId,f:{}});var f={ownerId:i.callId,callData:i.callData,messageType:"call",blockId:n.Helper.generateUUID(),callId:i.callId};c?this.$store.dispatch("chat/addMessageBlock",f):this.$store.dispatch("history/addMessageBlock",f)}else if(!t){if(void 0===i.ownerId&&"n"===i.type)return;var p={ownerId:i.ownerId,messages:[i],senderType:i.senderType,messageType:i.type,blockId:n.Helper.generateUUID(),profileImage:i.profileImage};i.blockId=p.blockId,c?this.$store.dispatch("chat/addMessageBlock",p):this.$store.dispatch("history/addMessageBlock",p)}o&&("v"===i.senderType||u?this.scrollToBottom():this.checkBarPosition())},isScrollBarBottom:function(){var e=this.$refs["tawk-chat-panel"];if(e){var t=e.offsetHeight+10;return e.scrollHeight-(e.scrollTop+t)<30}}}}},e49c:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("f0b0"),a=r("7f46"),i={methods:{setError:function(e,t){t.isError=e},setValue:function(e,t){t.value=e;var r=t.value||"";"string"==typeof e&&(r=e.trim()),("text"===t.type||"phone"===t.type||"textarea"===t.type)&&t.isRequired&&r.length>0&&(t.invalidType="")},setInvalidType:function(e,t){t.invalidTypeValue=e},formatFields:function(e){for(var t=[],r=0;rn?1:0}));t.push({label:a.label,type:a.context,isRequired:a.required,selections:o||[],id:n.Helper.generateUUID(),errorMessage:i,isError:!1,invalidTypeValue:""})}else t.push({label:a.label,type:a.context||a.type,isRequired:a.required,selections:a.options?this.formatOptions(a.options,a.type):null,value:"checkbox"===a.type?[]:s,id:n.Helper.generateUUID(),errorMessage:i,invalidTypeValue:""})}return t},formatOptions:function(e,t){var r,a=[];"radio"===t&&(r=n.Helper.generateUUID());for(var i=0;i0)i=i.replace(/[- )(]/g,""),e.phone=i;else if("department"===n.type){if(n.isRequired&&!this.selectedDepartment){if(!n.selections||!n.selections.online.length&&!n.selections.offline.length)continue;n.isError=!0,t=!0;continue}if(n.isError=!1,!this.selectedDepartment)continue;e.department=this.selectedDepartment.value,e.questions.push({label:a.a.rawDecode(n.label),answer:a.a.rawDecode(this.selectedDepartment.rawText)})}n.isRequired&&0===i.length&&"department"!==n.type&&(this.$refs[n.id]&&this.$refs[n.id].length&&this.$refs[n.id][0]&&this.$refs[n.id][0].validate&&this.$refs[n.id][0].validate(),t=!0),n.isError?t=!0:i&&i.length&&("string"==typeof i?e.questions.push({label:a.a.rawDecode(n.label),answer:i}):e.questions.push({label:a.a.rawDecode(n.label),answer:i.join(", ")}))}return{formData:e,hasError:t}},formatInlineFormData:function(){for(var e={additionalInfo:[]},t=!1,r=null,n=0;n0&&(s=s.replace(/[- )(]/g,"")),e.phone=s.length?s:void 0;else if("message"===i.type)e.message=s.length?s:void 0;else{var o;null!==(o=s)&&void 0!==o&&o.length&&"string"==typeof s?i.value.length&&e.additionalInfo.push({label:a.a.rawDecode(i.label),type:i.type,value:s}):i.value.length&&e.additionalInfo.push({label:a.a.rawDecode(i.label),type:i.type,value:s.join(", ")})}i.isError&&(t=!0)}return{formData:e,error:{hasError:t,message:r}}}}}}}]); //# sourceMappingURL=twk-chunk-7941cc06.js.map